package mtmmtest.kchao.com.mtmmtest;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {
    private TextView mShow_Tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        testSetText();
    }
    private void testSetText(){
        mShow_Tv= findVIew(R.id.show_tv_id);
        mShow_Tv.setText("热修复后代码ceshigit stash");
     }

    private <T extends View>T findVIew(int id){
        return (T)findViewById(id);
    }
}